package com.java.zhuiyun.api.houserank.mapper;

import com.java.zhuiyun.api.houserank.entity.HouseRank;
import com.java.zhuiyun.api.houserank.model.Modelsize;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @InterfaceName HouseMapper
 * @Description TODO
 * @Author wuwan
 * @Date 2023/9/14 9:54
 **/
@Mapper
public interface HouserankMapper {
    /*
     * @Author wuwan
     * @Description 角色数据查询
     * @Date 2023/9/14 8:34
     * @Return
     * @param null
     */
    List<HouseRank> selectHouserank();
    /*
     * @Author wuwan
     * @Description 添加角色
     * @Date 2023/9/14 8:34
     * @Return
     * @param null
     */
    Integer addHouserank(HouseRank roleRank);
    /*
     * @Author wuwan
     * @Description 获取已有角色等级 进行递增升级
     * @Date 2023/9/14 8:48
     * @Return
     * @param null
     */
    Modelsize selectHouserankCount();
    /*
     * @Author wuwan
     * @Description 修改角色带图片
     * @Date 2023/9/14 8:35
     * @Return
     * @param null
     */
    Integer updateHouserank(HouseRank roleRank);
    /*
     * @Author wuwan
     * @Description 修改数据不带图片
     * @Date 2023/9/14 8:35
     * @Return
     * @param null
     */
    Integer updateHouseranks(HouseRank roleRank);
    /*
    * @Author wuwan
    * @Description 查询当前用户的房屋数据
    * @Date 2023/10/12 10:43
    * @Return
    */
    HouseRank getHouseData(Integer houseLevel);
}
